package com.layui.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import com.layui.common.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * 
 * @author LiShuai
 * @date 2019年2月24日
 */
@Entity
@Table(name = "sys_address")
@Getter
@Setter
@EntityListeners(AuditingEntityListener.class)
public class Address extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 父节点id
	 */
	private Long pid;
	/**
	 * 城市名称
	 */
	private String pids;
	private String title;

	/**
	 * 层级1 - 3
	 */
	private Byte type;

	/**
	 * 城市编号
	 */
	private String code;

	/**
	 * 省会编号
	 */
	private String cityCode;

	/**
	 * 经纬度
	 */
	private String center;

}
